package com.py.credit.service.impl;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.py.credit.dao.DynamicMapDao;
import com.py.credit.entity.QyRateNum;
import com.py.credit.service.DynamicMapService;

@Service
public class DynamicMapServiceImpl implements DynamicMapService{
	
	@Autowired
	private DynamicMapDao dynamicMapDao;

	@Override
	public List<QyRateNum> selectQyRateNum(int year, int month, String type, String sort, String section, String code) {
		// TODO Auto-generated method stub
		return dynamicMapDao.selectQyRateNum(year, month, type, sort, section, code);
	}

	@Override
	public BigDecimal selectEITradeTendencyCount(int year, int month, String type, String section) {
		// TODO Auto-generated method stub
		return dynamicMapDao.selectEITradeTendencyCount(year, month, type, section);
	}

	@Override
	public List<Map<String, Object>> getTradeVolume(int year) {
		// TODO Auto-generated method stub
		return dynamicMapDao.getTradeVolume(year);
	}

	@Override
	public Integer getTradeVolumeRank(int year, String section) {
		// TODO Auto-generated method stub
		return dynamicMapDao.getTradeVolumeRank(year, section);
	}

	@Override
	public Integer getTradeVolumeRankByType(int year, String section, String type) {
		// TODO Auto-generated method stub
		return dynamicMapDao.getTradeVolumeRankByType(year, section, type);
	}

	@Override
	public List<Map<String, Object>> getProductTop5(int year, String section, String type) {
		// TODO Auto-generated method stub
		return dynamicMapDao.getProductTop5(year, section, type);
	}

	@Override
	public List<Map<String, Object>> selectDictTypeChartCount(int year, String code, String section) {
		// TODO Auto-generated method stub
		return dynamicMapDao.selectDictTypeChartCount(year, code, section);
	}

	@Override
	public List<Map<String, Object>> getTradeCountryTop6(int year, String section, String type) {
		// TODO Auto-generated method stub
		return dynamicMapDao.getTradeCountryTop6(year, section, type);
	}

	@Override
	public List<Map<String, Object>> getProductInfo(String name, int year, String section, String type) {
		// TODO Auto-generated method stub
		return dynamicMapDao.getProductInfo(name, year, section, type);
	}

	@Override
	public BigDecimal selectEITotalCount(int year, String type, String section) {
		// TODO Auto-generated method stub
		return dynamicMapDao.selectEITotalCount(year, type, section);
	}

	@Override
	public List<Map<String, Object>> selectCityTotalCount(int year) {
		// TODO Auto-generated method stub
		return dynamicMapDao.selectCityTotalCount(year);
	}

	@Override
	public List<Map<String, Object>> selectCommodityTotalCount(int year, String section) {
		// TODO Auto-generated method stub
		return dynamicMapDao.selectCommodityTotalCount(year, section);
	}

}
